package com.open.loan.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.open.system.service.RepayLogService;

@Component
public class UpdateData {

	@Autowired
	private RepayLogService repayLogService;
	
		@Scheduled(cron ="10 0 0 * * ?")
		public void home() {
			try {
				repayLogService.updateStatus();
			} catch (Exception e) {
				e.printStackTrace();
			}
	    }
}
